<div class="question">
<br/>
<hr/>
<fieldset style="border: none; padding: 0px;">
	Pytanie zamknięte:<BR/>
	<p>
	<label for="question_question">Treść pytania</label>	
	<%= form.text_field  :question %><br/>
	</p>
	<% type = QuestionType.find_by_name("closed question") %>
	<%= form.hidden_field :type_id, :value => type.id%>
	
	
	

<% 	form.fields_for :closedquestion, ClosedQuestion.new do |cqform| %>
	
	<p>
	<label for="question_question">Min zaznaczonych odp</label>	
	<%= cqform.text_field  :minAnswers %><br/>
	</p>

	<p>
	<label for="question_question">Max zaznaczonych odp</label>	
	<%= cqform.text_field  :maxAnswers %><br/>
	</p>	

	
		   	<% 	cqform.fields_for :cqpossibleanswers, CQPossibleAnswer.new do |f| %>
	      		
		   		<p>
					<%= f.text_field  :possibleAnswer %>
					<%= add_possible_answer_link %> 
				</p>
			
		
			<% end %>
		
<% end %>
<%= remove_cq_question_link( form ) %>
</fieldset>
</div>